package com.morehair.controller.wx;

import com.morehair.bean.bo.WxFeedbackBo;
import com.morehair.bean.bo.admin.FeedbackBo;
import com.morehair.bean.pojo.Feedback;
import com.morehair.bean.vo.admin.BaseRespVo;
import com.morehair.service.wx.WxFeedbackService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Transactional
public class WxFeedbackControllor {

    @Autowired
    WxFeedbackService feedbackService;

    @RequestMapping("wx/feedback/submit")
    public BaseRespVo submit(@RequestBody WxFeedbackBo feedbackBo){
        feedbackService.submit(feedbackBo);
        return BaseRespVo.ok();
    }

}
